/*
 * Marmoset Add-In for Microsoft Visual Studio
 *
 * Copyright (C) 2007, David H. Hovemeyer
 * Copyright (C) 2007, Fidel K. Estrella
 *
 * This program is free software licensed under the
 * terms of the GNU General Public License, version 2.
 * See the file "COPYING.txt" for details.
 */

using System;
using System.Collections.Generic;
using System.Text;

namespace Marmoset
{
    /// <summary>
    /// Interface for objects accepting debug output.
    /// </summary>
    public interface DebugOutput
    {
        /// <summary>
        /// Write a single-line message to debug output.
        /// </summary>
        /// <param name="msg">single-line message to write</param>
        void WriteToOutput(string msg);
    }

    /// <summary>
    /// A class which accepts debug output and does nothing with it.
    /// </summary>
    public class NoopDebugOutput : DebugOutput
    {
        public void WriteToOutput(String msg)
        {
        }
    }
}
